package ArrayList;

import com.sun.jdi.StringReference;

public class Student {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    private String name;
    private int age;
    private String sex;


    public Student(){
    }
    public Student(String name,int age,String sex){
        this.age=age;
        this.sex=sex;
        this.name=name;
    }
    public String toString(){
        return "姓名为"+name+"  年龄为"+age+"  性别为"+sex;

    }
}
